package com.wanxi.object;

public class PhoneTest {
    Phone phone = new Phone();
    public static void main(String[] args) {
        Phone phone = new Phone();
        phone.price = 11;
        phone.brand = "华为";
        phone.call();
        System.out.println(phone.price);
        System.out.println(phone.brand);
        phone.sendMessage("任正非");
        System.out.println(phone);
        Phone phone1 = phone;
        System.out.println(phone1.price);
        System.out.println(phone1.brand);
        phone1.sendMessage("乔布斯");
        System.out.println(phone1);
    }
}
